

DEFINE VARIABLE datef AS DATE.
DEFINE VARIABLE datet AS DATE.
DEFINE VARIABLE teamf LIKE hwom_team.
DEFINE VARIABLE teamt LIKE hwom_team.

ASSIGN teamf = '728116' 
       teamt = '72811E' 
       datef = 1/14/2009  
       datet = 1/13/2009   .

FOR EACH hwom_det EXCLUSIVE-LOCK WHERE hwom_date = datef AND hwom_team >=teamf AND hwom_team <= teamt :
    DISPLAY hwom_date hwom_team.
/*     ASSIGN hwom_date = datet.  */
END.
FOR EACH hwot_det EXCLUSIVE-LOCK WHERE hwot_date = datef AND hwot_team >=teamf AND hwot_team <= teamt :
    DISPLAY hwot_date hwot_team.
/*     ASSIGN hwot_date = datet.  */
END.
FOR EACH hwop_det EXCLUSIVE-LOCK WHERE hwop_date = datef AND hwop_team >=teamf AND hwop_team <= teamt :
    DISPLAY hwop_date hwop_team.
/*     ASSIGN hwop_date = datet.  */
END.
FOR EACH hwoa_det EXCLUSIVE-LOCK WHERE hwoa_date = datef AND hwoa_team >=teamf AND hwoa_team <= teamt :
    DISPLAY hwoa_date hwoa_team.
/*     ASSIGN hwoa_date = datet.  */
END.

